package com.zrrd.learn.framework.springframework.core.official;

import lombok.Data;

/**
 * @author wrn
 * @version 1.0
 * @date 2023/9/12 13:14
 */
@Data
public class Product extends ParentProduct{

    public Product() {
        System.out.println("构造方法");
    }

    private String name;

    private double price;

    private String desc;

    private Supplier supplier;



    public double getPrice() {
        return price;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public String getDesc() {
        return "asdfsef";
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    private void ttt() {
//        为类的一些参数做初始化
        System.out.println("5555....");
    }

}
